Cosine Similarity
Before getting into the cosine similarity function remember that the norm of a vector is defined as:
The dot product is then defined as:

The following cosine similarity equation makes sense:
If and are the same then you get the numerator to be equal to the denominator. Hence . On the other hand, the dot product of two orthogonal (perpendicular) vectors is . That takes place when .

Complete
